fo=open("D:\\hello.txt","w")
fo.write("hello world")
fo.close()